package com.qf.feign.api;

import com.qf.entity.Car;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "shop-car",path = "/carController")
public interface CarService {

    @RequestMapping("/mergeCar")
    public void mergeCar(@RequestParam("annoId") String annoId, @RequestParam("uid") Integer uid);

    @RequestMapping("/getCarListByUid/{id}")
    List<Car> getCarListByUid(@PathVariable("id") Integer id);
}
